package com.sky.mapper;

import com.sky.vo.BusinessDataVO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface WorkspaceMapper {

    /**
     * 查询今日运营数据
     *
     * @param begin
     * @param end
     * @return {@link List}<{@link Map}<{@link String}, {@link Object}>>
     */
    List<Map<String, Object>> selectBusinessData(LocalDateTime begin, LocalDateTime end);

    /**
     * 查询套餐总览
     *
     * @return {@link Map}<{@link String}, {@link Object}>
     */
    Map<String, Object> overviewSetmeals();

    Map<String, Object> overviewDishes();

    /**
     * 查询订单管理数据
     *
     * @return {@link Map}<{@link String}, {@link Long}>
     */
    Map<String, BigDecimal> selectOverviewOrders();

    /**
     * 查询excel数据
     *
     * @param begin
     * @param end
     * @return {@link BusinessDataVO}
     */
    BusinessDataVO selectExcelDate(LocalDateTime begin, LocalDateTime end);

    List<BusinessDataVO> selectExcelDayDate(LocalDateTime begin, LocalDateTime end);
}
